/*
 * Created by LiuYou on 2020/12/13.
 *
 */

#ifndef EFFECTIVE_CPP_2_PEOPLE_HPP
#define EFFECTIVE_CPP_2_PEOPLE_HPP


#include <xstring>
#include <ostream>

class People {
public:
    friend std::ostream& operator<<(std::ostream& os, const People& people);

    People(std::string name, int age);

    People(People&& rhs) noexcept;

    const std::string& getName() const;

    int getAge() const;

private:
    std::string name;
    int age;

};


#endif //EFFECTIVE_CPP_2_PEOPLE_HPP
